<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018\6\18 0018
  Time: 19:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>信息管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="/style/basic_layout.css" rel="stylesheet" type="text/css">
    <link href="/style/common_style.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/jquery/jquery.form.min.js"></script>
    <script type="text/javascript" src="/js/plugins/artDialog/jquery.artDialog.js?skin=green"></script>
    <script type="text/javascript" src="/js/commonAll.js"></script>
</head>
    <script type="text/javascript">
        $(function () {
            //	保存操作
            $("#editForm").ajaxForm(function (data) {
                if(data.success){
                    $.dialog({
                        title:'温馨提示',
                        content:'确定要保存吗?',
                        icon:'success',
                        ok:function () {
                            window.location.href='/department/query';
                        }
                    });
                }
            })
        })
    </script>
<body>
<form name="editForm" action="/department/saveOrUpdate" method="post" id="editForm">
    <input type="hidden" name="id" value="${dept.id}" class="ui_input_txt02">
    <div id="container">
        <div id="nav_links">
            <span style="color: #1A5CC6;">部门编辑</span>
            <div id="page_close">
                <a>
                    <img src="/images/common/page_close.png" width="20" height="20" style="vertical-align: text-top;"/>
                </a>
            </div>
        </div>
        <div class="ui_content">
            <table cellspacing="0" cellpadding="0" width="100%" align="left" border="0">
                <tr>
                    <td class="ui_text_rt" width="140">部门名称</td>
                    <td class="ui_text_lt">
                        <input value="${dept.name}" name="name" class="ui_input_txt02"/>
                    </td>
                </tr>
                <tr>
                    <td class="ui_text_rt" width="140">部门编码</td>
                    <td class="ui_text_lt">
                        <input type="text"  value="${dept.sn}" name="sn" class="ui_input_txt02"/>
                    </td>
                </tr>
                <td>&nbsp;</td>
                <td class="ui_text_lt">
                    &nbsp;<input type="submit" value="确定保存" class="ui_input_btn01"/>
                    &nbsp;<input id="cancelbutton" type="button" value="重置" class="ui_input_btn01"/>
                </td>
                </tr>
            </table>
        </div>
    </div>
</form>
</body>
</html>
